package com.modules.system.controller;

import com.common.response.ResponseVO;
import com.modules.system.entity.Admin;
import com.modules.system.service.IAdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/admin")
public class AdminController {

    @Autowired
    private IAdminService adminService;

    @PostMapping("/login")
    public ResponseVO doLogin(@RequestBody Admin admin){
        return adminService.doLogin(admin);
    }
}
